class Solution(object):
    def isCovered(self, ranges, left, right):
        out = [0] * 51
        for i, j in ranges:
            for k in range(i, j + 1):
                out[k] = 1
        for k in range(left, right + 1):
            if not out[k]:
                return False
        return True
